#旋转
execute as @e[tag=mystic_pedestal.display,type=item_display] run function util:rotation/add_y {value:5}

#particle
execute as @e[tag=mystic_pedestal,tag=has_effect,type=item_display] at @s run particle portal ~ ~1.8 ~ 0.2 0.2 0.2 0.5 1 normal

#trigger
execute as @e[tag=mystic_pedestal,type=item_display,tag=has_effect] at @s if data entity @n[tag=mystic_pedestal.interaction,distance=..1,type=interaction] attack run function dab:system/mystic_pedestal/attack
execute as @e[tag=mystic_pedestal,type=item_display,tag=has_effect] at @s if data entity @n[tag=mystic_pedestal.interaction,distance=..1,type=interaction] interaction run function dab:system/mystic_pedestal/interaction with entity @s item.components."minecraft:custom_data"

#anim
scoreboard players remove @e[tag=mystic_pedestal,type=item_display,scores={animSys=1..}] animSys 1
execute as @e[tag=mystic_pedestal,type=item_display,scores={animSys=..0}] at @s run function dab:system/mystic_pedestal/break